home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / devices / scsidisk.inc < prev    next >
Text File  |  1998-06-24  |  689b  |  38 lines

  1. include "inc/exec/types.inc";
  2.  
  3. def HD_SCSICMD = 28;
  4.  
  5. struct SCSICmd is
  6.   scsi_Data:ulong;
  7.   scsi_Length:ulong;
  8.   scsi_Actual:ulong;
  9.   scsi_Command:ulong;
  10.   scsi_CmdLength:uword;
  11.   scsi_CmdActual:uword;
  12.   scsi_Flags:ubyte;
  13.   scsi_Status:ubyte;
  14.   scsi_SenseData:ulong;
  15.   scsi_SenseLength:uword;
  16.   scsi_SenseActual:uword;
  17. ;
  18.  
  19. def SCSIF_WRITE = 0;
  20. def SCSIF_READ = 1;
  21. def SCSIB_READ_WRITE = 0;
  22.  
  23. def SCSIF_NOSENSE = 0;
  24. def SCSIF_AUTOSENSE = 2;
  25. def SCSIF_OLDAUTOSENSE = 6;
  26. def SCSIB_AUTOSENSE = 1;
  27. def SCSIB_OLDAUTOSENSE = 2;
  28.  
  29. def HFERR_SelfUnit = 40;
  30. def HFERR_DMA = 41;
  31. def HFERR_Phase = 42;
  32. def HFERR_Parity = 43;
  33. def HFERR_SelTimeout = 44;
  34. def HFERR_BadStatus = 45;
  35.  
  36. def HFERR_NoBoard = 50;
  37.  
  38.